package com.ruoyi.disCustomer.domain.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 客户分配记录业务对象 t_customer_dis_record
 *
 * @author ruoyi
 * @date 2023-08-20
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class TCustomerDisRecordBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 客户id
     */
    @NotNull(message = "客户id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long customerId;

    /**
     * 退回类型 1、池子之间分配 2、分配给业务员
     */
    @NotBlank(message = "退回类型 1、池子之间分配 2、分配给业务员不能为空", groups = {AddGroup.class, EditGroup.class})
    private String busType;

    /**
     * 操作分配的人
     */
    @NotNull(message = "操作分配的人不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long operateDisId;

    /**
     * 操作分配用户名+真实姓名
     */
    @NotBlank(message = "操作分配用户名+真实姓名不能为空", groups = {AddGroup.class, EditGroup.class})
    private String operateDisName;

    /**
     * 操作人部门id
     */
    @NotNull(message = "操作人部门id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long operateDeptId;

    /**
     * 分配给哪个（部门id）
     */
    @NotNull(message = "分配给哪个（部门id）不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long disDeptId;

    /**
     * 分配业务员（业务员id）
     */
    @NotNull(message = "分配业务员（业务员id）不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long disUserId;

    /**
     * 分配原因（预留）
     */
    @NotBlank(message = "分配原因（预留）不能为空", groups = {AddGroup.class, EditGroup.class})
    private String disReason;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = {AddGroup.class, EditGroup.class})
    private String remark;

    /**
     * 客户姓名
     */
    @NotBlank(message = "客户姓名不能为空", groups = {AddGroup.class, EditGroup.class})
    private String customerName;

    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空", groups = {AddGroup.class, EditGroup.class})
    private String tel;

    /**
     * 任务id
     */
    @NotBlank(message = "任务id", groups = {EditGroup.class})
    private String taskId;

    /**
     * 用户名/部门名称
     */
    @NotBlank(message = "名称")
    private String disName;


}
